/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package net.flowas.os.domain;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import net.flowas.secure.entity.IdEntity;

/**
 *
 * @author Administrator
 */
@Entity
public class DictionaryCategory extends IdEntity{
    private String type;
    @ManyToOne
    private DictionaryCategory parent;

    /**
     * @return the type
     */
    public String getType() {
        return type;
    }

    /**
     * @param type the type to set
     */
    public void setType(String type) {
        this.type = type;
    }

    /**
     * @return the parent
     */
    public DictionaryCategory getParent() {
        return parent;
    }

    /**
     * @param parent the parent to set
     */
    public void setParent(DictionaryCategory parent) {
        this.parent = parent;
    }
}
